<tagLib name="strends" />
<php>
	function showtype($mtype)
	{
		if($mtype==1){
			return "职场";
		}elseif($mtype==2){
			return "情感";
		}elseif($mtype==3){
			return "亲子";
		}elseif($mtype==4){
			return "老客户";
		}else{
			return "职场与个运";
		}		
	}
	function readtime($read_time){
		return date('Y-m-d',$read_time);
	}
</php>
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<script>
	function outData(durl){
		location.href=durl;
	}
</script>
<div class="handle-btns">
	<strends:imageBtn id="addData" name="addData" value="{%ADD}" click="addData(this,'checkList')" />
	<strends:imageBtn id="removeData" name="removeData" value="{%REMOVE}" click="removeData(this,'checkList')" />
	<strends:imageBtn id="outData" name="outData" value="{%OUTDATA}" click="outData('{:U(MODULE_NAME.'/outexcel')}')" />
	<form action="__APP__">
		<span>{%UNAME}</span>
		<input class="textinput" type="text" value="{$uname}" name="uname" size="12" />
		<small></small>
		<input class="submit_btn" type="submit" value="{%SEARCH}" />
		<input type="hidden" name="{:c('VAR_MODULE')}" value="{$module_name}" />
		<input type="hidden" name="{:c('VAR_ACTION')}" value="index" />
	</form>
</div>
<strends:list 
	id="checkList" 
	style="list" 
	name="album" 
	checkbox="true" 
	action="true" 
	datasource="list" 
	show="id:{%ID}|50,uname:{%UNAME}|100,mtype|showtype:{%MTYPE}|100,money:{%MONEY}|150,grid:{%GRID}|200,read_time|readtime:{%READ_TIME}|150,send_time|toDate:{%SEND_TIME}|150,is_read|getStatusImg:{%IS_READ}|80:toggleStatus|id,is_over|getStatusImg:{%IS_OVER}|80:toggleStatus|id" 
	actionlist="editData:{%EDIT}:id,removeData:{%REMOVE}:id" action_width="100" />
<div class="pager">{$page}</div>
<include file="Public:footer" />